package com.tsd.system.service;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysGroup;
import com.tsd.system.entity.SysGroupExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;


/**
 * 描述：SysGroup服务实现层接口
 *
 * @author Hillpool
 * @date 2019/03/12 12:20:51
 */
public interface SysGroupService {

    /**
     * 描述：根据id获取SysGroup
     *
     * @param id
     */
    SysGroup getSysGroupById(Long id) throws Exception;

    SysGroupExt getSysGroupBySid(String sid) throws Exception;

    SysGroupExt queryBySid(String sid) throws Exception;

    /**
     * 描述：保存或更新SysGroup
     *
     * @param record
     * @param opUser
     */
    void saveSysGroup(SysGroup record, SysUser opUser) throws Exception;

    /**
     * 描述：根据id删除SysGroup
     *
     * @param list
     */
    void deleteSysGroup(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询SysGroup
     *
     * @param params
     * @param page
     */
    List<SysGroupExt> findSysGroups(Map<String, Object> params, PageBean page) throws Exception;

    List<SysGroupExt> findSysGroups(Map<String, Object> params) throws Exception;

    List<SysGroupExt> findSysGroupTree(Map<String, Object> params) throws Exception;

}
